Xceed .NET Libraries Documentation
Xceed.FileSystem.FluentAssertions Assembly / Xceed.FileSystem.FluentAssertions Namespace / FileSystemItemAssertions<TSubject,TFileSystemItemAssertions> Class
Type of the subject.
Type of the file system item assertions.


In This Topic
    FileSystemItemAssertions<TSubject,TFileSystemItemAssertions> Class
    In This Topic
    Implements fluent assertions for the FileSystemItem type.
    Syntax
    'Declaration
     
    
    Public Class FileSystemItemAssertions
        (Of TSubject As FileSystemItem,
         TFileSystemItemAssertions As FileSystemItemAssertions(Of TSubject,TFileSystemItemAssertions)) 
       Inherits FluentAssertions.Primitives.ReferenceTypeAssertions(Of TSubject,TFileSystemItemAssertions)
    public class FileSystemItemAssertions<TSubject,TFileSystemItemAssertions> : FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions> 
    where TSubject: FileSystemItem
    where TFileSystemItemAssertions: FileSystemItemAssertions<TSubject,TFileSystemItemAssertions>
    Type Parameters
    TSubject
    Type of the subject.
    TFileSystemItemAssertions
    Type of the file system item assertions.
    Inheritance Hierarchy

    System.Object
       FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TAssertions>
          Xceed.FileSystem.FluentAssertions.FileSystemItemAssertions<TSubject,TFileSystemItemAssertions>
             Xceed.FileSystem.FluentAssertions.AbstractFileAssertions<TSubject,TAbstractFileAssertions>
             Xceed.FileSystem.FluentAssertions.AbstractFolderAssertions<TSubject,TAbstractFolderAssertions>
             Xceed.FileSystem.FluentAssertions.FileSystemItemAssertions

    Public Constructors
    Public Properties
     NameDescription
    Public Property (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public PropertyGets a chained FluentAssertions.Primitives.StringAssertions object to assert the Xceed.FileSystem.FileSystemItem.FullName property.  
    Public PropertyGets a chained FluentAssertions.Primitives.StringAssertions object to assert the Xceed.FileSystem.FileSystemItem.Name property.  
    Public Property (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Top
    Protected Properties
     NameDescription
    Protected PropertyOverridden.  Returns the type of the subject the assertion applies on. It should be a user-friendly name as it is included in the failure message.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded.  (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodAsserts that the subject is a (direct or indirect) child of the specified folder.  
    Public MethodAsserts that the subject is the direct child of the specified folder.  
    Public MethodAsserts that the subject FileSystemItem object is equivalent to another FileSystemItem object.  
    Public Method (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodOverloaded.  (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public Method (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public Method (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodAsserts that the FileSystemItem exists.  
    Public MethodOverloaded.  (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodOverloaded.  (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodAsserts that the subject FileSystemItem object is equivalent to another FileSystemItem object.  
    Public Method (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodOverloaded.  (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public Method (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodAsserts that the FileSystemItem does not exist.  
    Public Method (Inherited from FluentAssertions.Primitives.ReferenceTypeAssertions<TSubject,TFileSystemItemAssertions>)
    Public MethodAsserts that the subject supports the Attributes property.  
    Public MethodAsserts that the subject supports the CreationDateTime property.  
    Public MethodAsserts that the subject supports the LastAccessDateTime property.  
    Public MethodAsserts that the subject supports the LastWriteDateTime property.  
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also